package com.loooooo.pm2024.modules.secu;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loooooo.pm2024.config.BigIDSerialize;

import java.io.Serializable;

public class Login implements Serializable {

    public static final String TYPE_USERNAME = "username";
    @JsonSerialize(using = BigIDSerialize.class)
    private Long userId;
    private String username;
    private String password;
    private String type;
    private Integer force;//强制登录
    private Integer exclusive;//独家的
    private String loginIP;
    private String loginAddress;
    private String loginNetwork;
    private Boolean  session;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getForce() {
        return force;
    }

    public void setForce(Integer force) {
        this.force = force;
    }

    public String getLoginIP() {
        return loginIP;
    }

    public void setLoginIP(String loginIP) {
        this.loginIP = loginIP;
    }

    public String getLoginAddress() {
        return loginAddress;
    }

    public void setLoginAddress(String loginAddress) {
        this.loginAddress = loginAddress;
    }

    public String getLoginNetwork() {
        return loginNetwork;
    }

    public void setLoginNetwork(String loginNetwork) {
        this.loginNetwork = loginNetwork;
    }

    public Integer getExclusive() {
        return exclusive;
    }

    public void setExclusive(Integer exclusive) {
        this.exclusive = exclusive;
    }

    public Boolean getSession() {
        return session;
    }

    public void setSession(Boolean session) {
        this.session = session;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
